package com.diandian.backend.order.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.diandian.backend.order.dto.OrderOnlineElemeSourceDetailParamDTO;

import java.io.Serializable;
import java.util.Date;

public class OrderOnlineElemeSourceDetailParam implements Serializable {

	private String id;
	private String belong;
	private String type;
	private String orderNum;
	private String content;
	private String finance;
	private String extra;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	private Integer del;

	public OrderOnlineElemeSourceDetailParamDTO toDTO(){
		OrderOnlineElemeSourceDetailParamDTO dto = new OrderOnlineElemeSourceDetailParamDTO();
		dto.setId(this.id);
		dto.setBelong(this.belong);
		dto.setType(this.type);
		dto.setOrderNum(this.orderNum);
		dto.setContent(this.content);
		dto.setFinance(this.finance);
		dto.setExtra(this.extra);
		dto.setCreateTime(this.createTime);
		dto.setDel(this.del);
		return dto;
	}

	public String getId() {
		return id;
	}
	public String setId(String id) {
		return this.id = id;
	}
	public String getBelong() {
		return belong;
	}
	public String setBelong(String belong) {
		return this.belong = belong;
	}
	public String getType() {
		return type;
	}
	public String setType(String type) {
		return this.type = type;
	}
	public String getOrderNum() {
		return orderNum;
	}
	public String setOrderNum(String orderNum) {
		return this.orderNum = orderNum;
	}
	public String getContent() {
		return content;
	}
	public String setContent(String content) {
		return this.content = content;
	}
	public String getFinance() {
		return finance;
	}
	public String setFinance(String finance) {
		return this.finance = finance;
	}
	public String getExtra() {
		return extra;
	}
	public String setExtra(String extra) {
		return this.extra = extra;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public Date setCreateTime(Date createTime) {
		return this.createTime = createTime;
	}
	public Integer getDel() {
		return del;
	}
	public Integer setDel(Integer del) {
		return this.del = del;
	}
}
